package ar.com.wholeconsulting.pacc.config;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;

public class ConfigValues {
	static final private String CONFIG_FILE = "./config/config.properties";
	private Properties configProperties = null;
	private static ConfigValues instance = null;

	private ConfigValues() {
		this.configProperties = new Properties();
		try {
			this.configProperties.load(new FileInputStream(CONFIG_FILE));
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}

	}

	public static ConfigValues getInstance() {
		if (instance == null) {
			instance = new ConfigValues();
		}
		return instance;
	}

	public Properties getConfigProperties() {
		return this.configProperties;
	}

}
